﻿namespace Super.Hmi.Converters
{
    /// <summary>
    /// 权限类型转换器
    /// </summary>
    public class PermissionTypeConverter : ValueMapperConverter<int>
    {
        protected override Dictionary<int, string> ValueToDisplayMap => new Dictionary<int, string>
        {
            [0] = "目录",
            [1] = "菜单",
            [2] = "按钮"
        };

        protected override string DefaultDisplay => "未知";
        protected override int DefaultValue => -1;
    }
}
